﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="notice.aspx.cs" Inherits="lgweb.inside.department.notice" %>
<%@ Register src="~/control/inside/department/header.ascx" tagname="header" tagprefix="uc1" %>
<%@ Register src="~/control/inside/department/footer.ascx" tagname="footer" tagprefix="uc2" %>
<%@ Register src="~/control/inside/pager.ascx" tagname="pager" tagprefix="uc3" %>
<%@ Register src="~/control/inside/department/department.ascx" tagname="department" tagprefix="uc4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>部门信息-龙院内部工作平台</title>
    <link href="/css/inside/base.css" rel="stylesheet" type="text/css" />
    <link href="/css/inside/department.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="top">
            <div class="con1200">
                <p class="g-fr">信息员 <span id="spInfoEditer" runat="server"></span></p>
                欢迎您登录<%=_DetpName%>信息平台
            </div>
        </div>
        <div class="g-header clear">
            <div class="header">
                <div class="g-mb-10">
                    <div>
                        <img src="<%=_picUrl+"BM_"+_DeptID+".jpg"%>" alt="" />                        
                    </div>
                    <uc1:header ID="header1" runat="server" />
                </div>
            </div>
        </div>
    <div class="content clear">
        <div class="con231 g-mr-18">
            <uc4:department ID="department1" runat="server" />
        </div>
        <div class="con951">
            <div class="box-red">
                <p class="b-r-top"></p>
                <div class="b-r-con">
                    <div class="g-here">当前位置：<a href="/inside/index.aspx">首页</a> > <a href="/inside/department/index.aspx" id="spDeptLink" runat="server">政治处</a> > <span id="spNewsName" runat="server">报送信息</span></div>
                    <div class="g-search">
                       <label>关键字:</label><input type="text" value="" id="txtKeyword" class="text" runat="server" />
                        <input type="button" value="搜索" class="g-btn-red" onclick="search('<%=_DeptID%>','<%=_cate%>');" />
                    </div>
                    <div class="g-con-red">
                        <ul class="ico4">
                            <asp:Repeater runat="Server" ID="rptNoticeList">
                                <ItemTemplate>                                   
<%--                                       <li><span class="g-fr">[<%#Eval("dept_name")%> <%#DateTime.Parse(Eval("pub_date").ToString()).ToString("yyyy-MM-dd")%>]</span><a href="#" onclick="this_opennotice('<%#Eval("content")%>');" ><%#Eval("title")%></a></li>
--%>                                 <li><span class="g-fr">[<%#Eval("dept_name")%> <%#DateTime.Parse(Eval("fi_update_time").ToString()).ToString("yyyy-MM-dd")%>]</span><a href="#" onclick="this_opendeptinfo('<%#Eval("content")%>');"  title="<%#Eval("title")%>"><%#LGCourt.Logic.Common.Utils.SubString(Eval("title"), 80)%></a></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                    <div>
                        <uc3:pager ID="pager1" runat="server" />
                    </div>
                </div>
                <p class="b-r-bottom"></p>
            </div>
        </div>
    </div>
    <uc2:footer ID="footer1" runat="server" />
    <input type="hidden" id="hdOADomain" runat="server" value="lgfyoa"/>
    </form>
</body>
</html>
<script type="text/javascript">
    var _oadomain = "/" + document.all.hdOADomain.value;
    if (_oadomain == '')
        _oadomain = '/lgfyoa';
    function this_opennotice(pID) {
        var url = '';
        var fs = 'left=0,top=0,titlebar=no,toolbar=no,status=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600,dependent=yes';
        url = _oadomain + '/notice/ftfy_notice_board.aspx?id=' + pID + '&class=';
        window.open(url, '_blank', fs);
    }
    //打开信息报送
    function this_opendeptinfo(infoid) {
        var fs = 'left=0,top=0,titlebar=no,toolbar=no,status=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600,dependent=yes';
        var url = _oadomain + '/lgfy/lgfy_dept_info_view.aspx?id=' + infoid + '&type=desk';
        window.open(url, '_blank', fs);
    }
    function search(deptid,cate) {
        window.location.href = "/inside/department/notice.aspx?keyword=" + encodeURIComponent(document.getElementById("txtKeyword").value)+"&deptid="+deptid+"&cate="+cate;
    }
</script>
